{% extends "adminlayout.html" %}
{% block adminlayout %}

    <div class="panel panel-default" style="margin-bottom: 400px;">
        <div class="panel-heading">
            <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
            最近一个月的报名记录
        </div>

        <!-- Table -->
        <table class="table table-bordered">
            <thead>
            <tr>
                <th style="text-align: center;">报名编号</th>
                <th style="text-align: center;">姓名</th>
                <th style="text-align: center;">年龄</th>
                <th style="text-align: center;">身份证号</th>
                <th style="text-align: center;">手机号</th>
                <th style="text-align: center;">报名时间</th>
                <th style="text-align: center;">性别</th>
                <th style="text-align: center;">学员照片</th>
                <th style="text-align: center;">驾照类型</th>
                <th style="text-align: center;">价格</th>
                <th style="text-align: center;">审核状态</th>
                <th style="text-align: center;">报名状态</th>
            </tr>
            </thead>
            <tbody>
            {% for obj in queryset %}
                <tr>
                    <td style="text-align: center;">{{ obj.id }}</td>
                    <td style="text-align: center;">{{ obj.user }}</td>
                    <td style="text-align: center;">{{ obj.age }}</td>
                    <td style="text-align: center;">{{ obj.idnumber }}</td>
                    <td style="text-align: center;">{{ obj.dianhua }}</td>
                    <td style="text-align: center;">{{ obj.order_date }}</td>
                    <td style="text-align: center;">{{ obj.get_gender_display }}</td>
                    <td style="text-align: center;"><img src="/media/{{obj.head }}" style="width: 60px;height: 60px;"></td>
                    <td style="text-align: center;">{{ obj.sname }}</td>
                    <td style="text-align: center;">{{ obj.price }}</td>
                    <td style="text-align: center;">{{ obj.get_status_display }}</td>
                    <td style="text-align: center;">{{ obj.get_enlist_display }}</td>
                </tr>

            {% endfor %}

            </tbody>
        </table>
        <ul class="pagination" style="margin-top: 50px;float: right;">
            {{ page_string }}
        </ul>
    </div>

{% endblock %}